package com.ruoyi.kjy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.mp.domain.CommonEntity;
import com.ruoyi.common.mp.handle.ListToStringHandle;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 申请对象 residency_application
 *
 * @author ruoyi
 * @date 2023-04-27
 */
@Data
@TableName(autoResultMap = true)  //BaseTypeHandler 配置
public class ResidencyApplication extends CommonEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    private Long id;


    private Long applicantId;
    /**
     * $column.columnComment
     */
    private Long enterpriseId;

    /**
     * $column.columnComment
     */
    private String entryApplicationForm;

    /**
     * $column.columnComment
     */
    @TableField(typeHandler = ListToStringHandle.class)
    private List<String> idCard;

    /**
     * $column.columnComment
     */
    @TableField(exist = false)
    private String businessLicense;

    /**
     * $column.columnComment
     */
    @TableField(typeHandler = ListToStringHandle.class)
    private List<String> certificate;

    /**
     * $column.columnComment
     */
    @TableField(typeHandler = ListToStringHandle.class)
    private List<String> patent;

    /**
     * $column.columnComment
     */
    private Integer state;


    private String remark;

//    /** 入驻时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
//    private Date auditTime;

    /** 校企合作证明（文件）*/
    @TableField(exist = false)
    private String cooperation;

    /** 老师或学生证明（文件）*/
    @TableField(exist = false)
    private String certification;
}
